import {Component, OnInit} from '@angular/core';

@Component({
  selector: 'app-invite',
  templateUrl: './invite.component.html',
  styleUrls: ['./invite.component.scss']
})
export class InviteComponent implements OnInit {


  items: any;

  constructor() {
  }

  ngOnInit() {
    this.items = [
      {
        id: 1,
        name: '乔峰'
      },
      {
        id: 2,
        name: '慕容复'
      },
      {
        id: 3,
        name: '段誉'
      },
      {
        id: 4,
        name: '虚竹'
      }
    ];
  }

  // 设置显示内容
  displayValue(member: { id: number; name: string }) {
    return member ? member.name : null;
  }

}
